package com.np.retrofit211demo1.bean;

import java.io.Serializable;

public class SystemResponse<T> implements Serializable {

    private String msg;
    private String traceId;
    private int code;
    private T data;
    private UserBean user; // api/user/getInfo 返回的数据字段名叫 user，不叫 data，所以加了这个字段

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setData(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }
}
